Meaning of the word "the enemy of your enemy is your friend" in English

What does "the enemy of your enemy is your friend" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

the enemy of your enemy is your friend

US /ði ˈɛn.ə.mi ʌv jɔːr ˈɛn.ə.mi ɪz jɔːr frɛnd/
UK /ði ˈɛn.ə.mi ɒv jɔː ˈɛn.ə.mi ɪz jɔː frɛnd/
"the enemy of your enemy is your friend" picture

Idiom

a principle that two parties can or should work together against a common adversary

Example:
The two rival companies formed an alliance to fight the new regulations, proving that the enemy of your enemy is your friend.
In politics, it is often said that the enemy of your enemy is your friend.